#region File Description

//-----------------------------------------------------------------------------
// ReturnStatus.cs
//
// Author: ITU Team3 (2012)
//-----------------------------------------------------------------------------

#endregion File Description

namespace rentit03_server.Business
{
    /// <summary>
    /// Error codes
    /// </summary>
    public enum ReturnStatus
    {
        General = 0,
        Succes,

        Session = 100,
        SessionInvalidLoginInformation,
        SessionInvalidSessionId,
        SessoinExpiredSessionId,

        Shoppingcart = 150,
        ShoppingcartNotFound,
        ShoppintcartItemNotFound,

        User = 200,
        UserValidateUsername,
        UserValidateEmail,
        UserValidatePassword,
        UserDuplicate,
        UserCreditNegativeAmount,
        UserCreditErrorUpdating,

        Comment = 250,
        CommentInvalidCommentId,
        CommentValidateMediaId,
        CommentValidateUserId,
        CommentValidateCommentBody,

        Media = 300,
        MediaValidateType,
        MediaValidateTitle,
        MediaValidateYear,
        MediaDuplicateMovieTitleYear,
        MediaInvalidMediaId,
        MediaInvalidVersionId,

        Access = 400,
        AccessPermissionDenied,
        RoleNotExists
    }
}